﻿import request from '/@/utils/request';
enum Api {
  AddKaoshiXueke = '/api/kaoshiXueke/add',
  DeleteKaoshiXueke = '/api/kaoshiXueke/delete',
  UpdateKaoshiXueke = '/api/kaoshiXueke/update',
  PageKaoshiXueke = '/api/kaoshiXueke/page',
  DetailKaoshiXueke = '/api/kaoshiXueke/detail',
  GetkaoshiKaoshiIdDropdown = '/api/kaoshiXueke/kaoshiKaoshiIdDropdown',
  GetXuekeXuekeIdDropdown = '/api/kaoshiXueke/XuekeXuekeIdDropdown',
  SaveKaoshiXueke = '/api/kaoshiXueke/save',
}

// 增加考试学科
export const addKaoshiXueke = (params?: any) =>
	request({
		url: Api.AddKaoshiXueke,
		method: 'post',
		data: params,
	});

// 删除考试学科
export const deleteKaoshiXueke = (params?: any) => 
	request({
			url: Api.DeleteKaoshiXueke,
			method: 'post',
			data: params,
		});

// 编辑考试学科
export const updateKaoshiXueke = (params?: any) => 
	request({
			url: Api.UpdateKaoshiXueke,
			method: 'post',
			data: params,
		});

// 分页查询考试学科
export const pageKaoshiXueke = (params?: any) => 
	request({
			url: Api.PageKaoshiXueke,
			method: 'post',
			data: params,
		});

// 详情考试学科
export const detailKaoshiXueke = (id: any) => 
	request({
			url: Api.DetailKaoshiXueke,
			method: 'get',
			data: { id },
		});

export const getkaoshiKaoshiIdDropdown = () =>
		request({
		url: Api.GetkaoshiKaoshiIdDropdown,
		method: 'get'
		});
export const getXuekeXuekeIdDropdown = () =>
		request({
		url: Api.GetXuekeXuekeIdDropdown,
		method: 'get'
		});

export const saveKaoshiXueke = (params?: any) => 
		request({
			url: Api.SaveKaoshiXueke,
			method: 'post',
			data: params,
		});